import {NgModule}      from '@angular/core';
import {NgbModule}     from '@ng-bootstrap/ng-bootstrap';
import {BrowserModule} from '@angular/platform-browser';
import {FormsModule}   from '@angular/forms';
import {HttpModule}    from '@angular/http';

import {AppComponent}   from './app.component';
import {AppRoutingModule}     from './app-routing.module';
import {IndexComponent} from "./index/index.component";
import {ToastyModule} from 'ng2-toasty';
import {LoginComponent} from "./login/login.component";
import {RegisterComponent} from "./register/register.component";
import {ArticleComponent} from "./article/article.component";
import {BackComponent} from "./back-stagemanagement/back.component";
import {BackItemArticleUploadComponent} from "./back-stagemanagement/back-stagemanagement-item/backitem-article-upload.component";
import {BackItemArticleManageComponent} from "./back-stagemanagement/back-stagemanagement-item/backitem-article-manage.component";
import {ActivityComponent} from "./activity/activity.component";
import {UserService} from "./service/user.service";
import {BackItemActivityUploadComponent} from "./back-stagemanagement/back-stagemanagement-item/backitem-activity-upload.component";
import {BackItemActivityManageComponent} from "./back-stagemanagement/back-stagemanagement-item/backitem-activity-manage.component";
import {ArticleListComponent} from "./article/article-list.component";
import {RetrievePasswordComponent} from "./retrieve-password/retrieve-password.component";
import {ChangePasswordComponent} from "./change-password/change-password.component";

@NgModule({
    imports: [
        BrowserModule,
        FormsModule,
        HttpModule,
        NgbModule.forRoot(),
        ToastyModule.forRoot(),
        AppRoutingModule,
    ],
    declarations: [AppComponent,IndexComponent,LoginComponent,RegisterComponent,
      ArticleComponent,BackComponent,BackItemArticleUploadComponent,BackItemArticleManageComponent,ActivityComponent,
      BackItemActivityUploadComponent,BackItemActivityManageComponent,ArticleListComponent,
      RetrievePasswordComponent,ChangePasswordComponent],
    providers: [
      UserService
    ],
    bootstrap: [AppComponent]
})
export class AppModule {
}
